/*
 * @Author: your name
 * @Date: 2021-03-30 12:56:50
 * @LastEditTime: 2021-03-30 13:04:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \my-app-koa\validation\is-empty.js
 */
const isEmpty = value => {
  return (value == undefined || value == null || (typeof value === 'object' && Object.keys(value).length === 0) || (typeof value === 'string' && value.trim().length === 0))


}

module.exports = isEmpty;
